package com.example.book.service.impl.user;

import com.example.book.dto.BorrowPageDTO;
import com.example.book.dto.UserDTO;
import com.example.book.entity.User;
import com.example.book.result.PageResult;

import javax.security.auth.login.AccountNotFoundException;
import java.util.List;

public interface UserService {
    void login(UserDTO userDTO) throws AccountNotFoundException;

    void insert(User user) throws AccountNotFoundException;

    void borrowByBookName(List<String> bookName) throws AccountNotFoundException;

    PageResult borrowBook(BorrowPageDTO borrowPageDTO);
    //图书的归还
    void giveBook(List<String> bookName);

}
